html {
  font-size: 18px;
  background-color: rgb(195, 224, 233);
}
* {
  padding: 0;
  margin: 0;
}
.w {
  width: 75rem;
  margin: 0 auto;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
input {
  outline: none;
}
.container {
  .box {
    position: relative;
    top: 0;
    left: 0;

    // 头部导航栏

    .header {
      position: fixed;
      top: 0;
      left: 50%;
      z-index: 10;
      //固定的盒子需要有宽度，margin对其没用

      -webkit-transform: translateX(-50%);
      transform: translateX(-50%);
      height: 3rem;
      border: 2px solid #f1f1f1;
      background-color: #fff;
      box-shadow: 0.01rem 0.01rem 0.5rem #f1f1f1;

      .header-bd {
        width: 100%;

        ul {
          display: flex;
          width: 75rem;
          height: 3rem;
          line-height: 3rem;
          flex-direction: row;
          justify-content: space-around;
          background-color: #fff;
          li {
            flex: 1;
            text-align: center;
            color: skyblue;
            a {
              color: skyblue;
            }
            input,
            button {
              height: 1.4rem;
              border: 0.1rem solid skyblue;
            }
            button {
              width: 2rem;
              height: 1.5rem;
            }
            &:hover {
              border-bottom: 0.15rem solid #ffd155;
            }
          }
        }
      }
    }

    // 背景图模块

    .banner {
      margin-top: 3.1rem;
      height: 8rem;
      background: url("../images/banner1.jpg");
    }

    // 好友动态模块

    .dynamic {
      display: flex;
      position: relative;
      top: 0;
      left: 0;
      margin: 0 auto;
      flex-direction: column;
      vertical-align: middle;

      .left {
        position: absolute;
        top: 0.5rem;
        left: 0rem;
        display: flex;
        width: 12rem;
        height: 31rem;
        padding: 0.5rem;
        border-radius: 1rem;
        background: rgba(151, 182, 216, 0.7);
        filter: alpha(opacity=90);
        -moz-opacity: 0.9;
        opacity: 0.9;
        flex-direction: column;
        #word {
          display: inline-block;
          padding-bottom: 1rem;
          margin: 1rem 0.5rem;
          border-bottom: 0.125rem dashed #3b9fc7;
        }
        .play {
          p {
            padding: 0.125rem;
            margin: 1rem 0.5rem;
          }
          .game {
            display: flex;
            flex-direction: column;
            vertical-align: middle;
            input {
              height: 1.5625rem;
              margin: 1rem 0.5rem;
              border: 0.125rem solid skyblue;
            }
            button {
              height: 1.5625rem;
              border: 0.125rem solid skyblue;
              padding: 0.125rem 0.25rem;
              border-radius: 2rem;
            }
            #yes {
              margin: 0 4rem;
            }
          }
        }
      }
      .dynamicBox {
        .showPic {
          position: fixed;
          top: 30%;
          left: 50%;
          -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
          width: 20rem;
          z-index: 10;
        }
        .allFriH2 {
          position: relative;
          top: 0;
          left: 18.5%;
          display: inline-block;
          width: 50rem;
          margin-top: 0.5rem;
          text-align: center;
          border: 0.125rem solid skyblue;
          background-color: #fff;
        }
        .center {
          position: relative;
          top: 0;
          left: 13rem;
          float: left;
          width: 75rem - 12rem - 10rem - 3rem;
          height: 100%;
          margin: 0.5rem 0.5rem;
          padding: 0.5rem;

          .reveal,
          .findDy {
            padding: 0.5rem;
            background-color: rgba(160, 180, 220, 0.5);
            ul,
            .findUl {
              li {
                border-bottom: 0.125rem dashed #3b9fc7;
                h2 {
                  margin-top: 0.5rem;
                  text-align: center;
                  overflow: hidden;
                  text-overflow: ellipsis; //超出部分以省略号显示
                  white-space: nowrap;
                }
                .div1,
                .div3 {
                  display: flex;
                  span {
                    flex: 1;
                    font-size: 0.75rem;
                    color: rgb(222, 237, 243);
                  }
                }
                div {
                  padding: 0.5rem 0;
                  overflow: hidden;
                  text-overflow: ellipsis; //超出部分以省略号显示
                  white-space: nowrap;
                }
              }
              .toReveal {
                width: 3.5rem;
                height: 1.5rem;
              }
            }
          }
        }
      }
      //显示动态详情
      .show,
      .findShow {
        position: relative;
        top: 0;
        left: 13rem;
        float: left;
        width: 75rem - 12rem - 10rem - 3rem;
        height: 100%;
        margin: 1rem 0.5rem;
        padding: 0.5rem;
        background-color: rgba(160, 180, 220, 0.5);
        h2 {
          text-align: center;
          margin-bottom: 0.5rem;
        }
        .div2,
        .div4 {
          display: flex;
          margin-bottom: 0.5rem;
          span {
            flex: 1;
            font-size: 0.75rem;
            color: #deedf3;
          }
        }
        img {
          height: 9.375rem;
          margin: 1rem 0.5rem;
        }
        .btnBox,
        .findBtnBox {
          height: 2rem;
          line-height: 2rem;
          button {
            float: right;
            width: 3.5rem;
            height: 1.5rem;
          }
        }
        .comment {
          input {
            height: 1.4rem;
            margin: 1rem 0.5rem;
            border: 0.125rem solid skyblue;
          }
          button {
            width: 3.5rem;
            height: 1.5rem;
            margin-right: 0.25rem;
          }
          .addComment {
            width: 40rem;
            height: 1.5rem;
            padding: 0.125rem 0.5rem;
            margin: 1rem 0;
            margin-left: 7.5%;
            border-radius: 1.25rem;
            border: 0.125rem solid skyblue;
          }
          .addComBtn {
            width: 4rem;
            height: 2rem;
            margin-left: 0.5rem;
            border-radius: 1rem;
            border: 0.125rem solid skyblue;
            background-color: #fff;
          }
          .newComment {
            padding: 0.5rem;
            border-bottom: 0.125rem dashed #3b9fc7;
            .newReply {
              padding-left: 1rem;
              padding-top: 0.5rem;
            }
            .delComment,
            .newReplyDel {
              float: right;
            }
          }
        }
      }
      .right {
        display: flex;
        position: absolute;
        top: 0.5rem;
        right: 0rem;
        width: 10rem;
        height: 20rem;
        padding: 0.5rem;
        box-sizing: border-box;
        border-radius: 1rem;
        background: #afc8e0;
        flex-direction: column;
        vertical-align: middle;
        // justify-content: center;
        align-items: center;
        .rightBox {
          display: flex;
          height: 8rem;
          flex-direction: column;
          vertical-align: auto;
          align-items: center;
          padding: 1rem;
          border-bottom: 0.125rem dashed #3b9fc7;
          img {
            width: 5rem;
            height: 5rem;
            margin-top: 1rem;
          }
        }
        h3 {
          margin: 1rem;
        }
        span {
          margin-bottom: 1rem;
        }
      }
    }
  }
}
//回复模块
.comment {
  position: relative;
  top: 0;
  left: 0;
  .replyBox {
    position: absolute;
    top: 30%;
    left: 40%;
  }
}
//专用提醒盒子
.told {
  position: fixed;
  left: 40%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  top: 45%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 15rem;
  height: 8rem;
  padding: 1rem;
  border-radius: 2rem;
  z-index: 100;
  background-color: #fff;
  border: 0.125rem solid skyblue;
  box-sizing: border-box;
  &:hover {
    box-shadow: 0px 0px 20px skyblue;
  }
  button {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}
